<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GoodsBrand extends Model
{
    protected $table = 'goods_brand';
    public $timestamps = false;
    protected $guarded = [];

    const STATUS_OPEN = 1; // 正常

    const STATUS_CLOSE = 2; // 关闭

    // status 字典
    const STATUSES = [
        self::STATUS_OPEN => '正常',
        self::STATUS_CLOSE => '关闭'
    ];
    public function getAll()
    {
        return self::where('status',self::STATUS_OPEN)->get()->toArray();
    }


}
